package com.bw.service;

import com.bw.bean.HwZb;
import com.bw.bean.PsJs;
import com.bw.bean.YdsOrder;
import com.bw.bean.YsLc;
import com.bw.dao.OrderInfoDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
//数据层 实现类
@Service
public class OrderInfoServiceImpl implements OrderInfoService {

    //业务层成功注入数据层
    @Autowired
    OrderInfoDao dao;

    //统计物流运单相关总数（接单数、发单数、完成运单数）存储过程
    @Override
    public List<YdsOrder> ydList() {
        return dao.ydList();
    }

    //统计各类货物下单次数占比
    @Override
    public List<HwZb> zbList() {
        return dao.zbList();
    }

    //统计各城市派送成功数
    @Override
    public List<PsJs> psList() {
        return dao.psList();
    }

    //统计各机构完成运输里程
    @Override
    public List<YsLc> ysList() {
        return dao.ysList();
    }
}
